package com.hz.ws.system;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @author mcz
 * @Date 2018/10/29 9:45
 * @Description 404页面控制器
 * @Version 1.0
 */

@Controller
public class Error404Controller implements ErrorController {
    private static final  Logger logger=LoggerFactory.getLogger(Error404Controller.class);
    private static final String ERROR_PATH = "/error";

     /**
      * @Author mcz
      * @Description 404异常页面跳转
      * @Date 2018/10/29 13:05
      * @Param 
      * @return 
      **/
    @RequestMapping(value=ERROR_PATH)
    public String handleError(){
        return "page/error/404";
    }
    @Override
    public String getErrorPath() {
        return ERROR_PATH;
    }

}
